Page({
  data: {
    pos:'',
    q_id:'',
    title:'',
    type:'',
    options:[],
    input_type:'',
  },

  titleInput(e){
    this.setData({
      title:e.detail.value
    })
  },
  
  save(){
    var app = getApp();
    this.data.type = "input";
    this.data.input_type = "text"
    app.globalData.tmpquestion = this.data
    app.globalData.edited = true;  

    wx.navigateBack({
      delta: 1,
    })
  }

  
})

